import request from '@/utils/request'

// 列头查询
export function listManagementAll(query) {
  return request({
    url: '/system/class/listAll',
    method: 'get',
    params: query
  })
}
//列表数据查询
export function listManagement(query) {
  return request({
    url: '/sys/report/revenueCost',
    method: 'get',
    params: query
  })
}

//作业费月度收入成本表数据查询
export function listRevenueMonthCost(query) {
  return request({
    url: '/sys/report/revenueMonthCost',
    method: 'get',
    params: query
  })
}

// 查询详细
export function getManagement(dataId) {
  return request({
    url: '/system/management/' + dataId,
    method: 'get'
  })
}


// 查询部门下拉树结构
export function deptTreeSelect() {
  return request({
    url: '/system/user/deptTree',
    method: 'get'
  })
}

//查询二级部门
export function listTwoDept(query) {
  return request({
    url: '/system/dept/list',
    method: 'get',
    params: query
  })
}

//查询付款单位
export function listPaydept(query) {
  return request({
    url: '/system/paymentdept/list',
    method: 'get',
    params: query
  })
}